2D Plotting Examples


Example 1
A simple example of a static plot. The data is created by the applet and plotted using the Graph2D, DataSet and Axis classes.
Example 2
In this example the applet loads the data to be plotted from an hardwired URL. The data is stored in a file as two columns of numbers. Obviously the URL could have been passed as a perameter to the applet.
Example 3
This is a replot of Example 1 with added features. A legend for the data, and the ability to change to range of the plot.
Example 4
This is a replot of Example 2 with the added feature of changing the range of the plot by dragging the mouse. This example introduces the subclass G2Dint of Graph2D that adds eventhandling to the parent class.
Example 5
This example uses the same method as example 2 to load the data from a server via a URL. This time though the URL does not reference a static file but a CGI script. The script is passed 2 parameters and the new data returned for plotting.
Example 6
This example runs a program on the server and plots the results. The user can pass parameters to the program modifying the results and choose which physical quantities to plot.

Jump To:
My Page
IGPP
Physics and Space Technology
LLNL

Last modified: Fri Oct 27 15:41:54 PDT 1995